//
//  timer.h
//  CodeLab11_uhTime
//
//  Created by Matthew Parker on 4/29/13.
//
//

#ifndef __CodeLab11_uhTime__timer__
#define __CodeLab11_uhTime__timer__

#include <iostream>
#include "ofMain.h"

#define DEFAULT 0
#define LOOPING 1
#define PINGPONG 2

class timer{
    
public:
    
    bool active;
    
    int mode;
    
    long startTime;
    long duration;
    long currentTime;
    
    timer();
    timer(long duration, int mode);
    
    void trigger();
    void step();
    void draw();
//    void reset();
//    
//    void pause();
//    void resume();
//    
//    void fastfoward();
};

#endif /* defined(__CodeLab11_uhTime__timer__) */
